﻿using KAs.Common.Const;
using KAs.SqlSugar.Entity;
using KAs.SqlSugar.Entity.Interface;
using SqlSugar;

namespace Test.Domain;

[SugarTable("app_user")]
public class UserInfo : SnowflakeIdEntity, IDeleteEntity
{
    [SugarColumn(ColumnDataType = ConstConfig.VARCHAR16)]
    public string Account { get; set; }

    [SugarColumn(ColumnDataType = ConstConfig.VARCHAR32)]
    public string Password { get; set; }

    [SugarColumn(ColumnDataType = ConstConfig.VARCHAR16)]
    public string UserName { get; set; }

    public int Gender { get; set; }

    [SugarColumn(IsNullable = true)]
    public string PhoneNumber { get; set; }

    [SugarColumn(IsNullable = true)]
    public string Email { get; set; }

    [SugarColumn(IsNullable = true)]
    public DateTime? CreateTime { get; set; }

    [SugarColumn(IsNullable = true)]
    public DateTime? UpdateTime { get; set; }

    public bool IsDeleted { get; set; }
}
